package com.itheima.service;


import com.itheima.dto.PageResult;
import com.itheima.dto.QueryPageBean;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    //根据手机号查询会员
    public Member findByTelephone(String telephone);
    public void add(Member member);
    public List<Integer> findMemberCountByMonths(List<String> months);

    public Member findMemberByTelophone(String phoneNumber);

    public void updateById(Member member);

    public String findPassword(String phoneNumber);

    public void updatePassword(String newpassword,String phoneNumber2);

    public Integer findIdByTelephone(String telephone);

    public void updatephoneNumber(Integer id, String telephone);

    public Integer findUserIfExist(String telephone, String password);




    PageResult findPage(QueryPageBean queryPageBean);

    Member findById(Integer id);

    void deleteById(Integer id);


    void edit(Member member);

    //通过角色id查询健康管理者
    List<Map<String, Object>> findManagerByRoleId();

    //获取检查信息
    List<String> findNames(Integer id);

    List<Member> findAll();


}
